<template>
  <div>
    <!-- 滚动-置顶 -->
    <el-backtop :right="25"></el-backtop>
    <!-- 右侧悬浮窗-小程序码 -->
    <el-popover
      placement="left"
      trigger="hover">
      <img src="../assets/img/common/miniappQrCode.png" alt="" srcset="" style="width: 150px;height: 150px;">
      <div style="text-align: center;margin-top: 2px;">【扫码测算】</div>
      <div id="GoTop" slot="reference">
        <img src="../assets/img/common/icon_miniapp.png" alt="" srcset="">
        <span>小程序<br/>测算</span> 
      </div>
    </el-popover>
  </div>
</template>
<script>
export default {
  name: "GoTop",
  data() {
    return {
      
    };
  },
  methods: {
    
  }
};
</script>
<style lang="scss" scoped>
#GoTop {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 50px;
  height: 90px;
  position: fixed;
  text-align: center;
  // right: 25px;
  right: 0px;
  bottom: 40%;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.12);
  z-index: 99;
  user-select: none;
  cursor: pointer;
  img{
    width: 30px;
    height: 30px;
  }
  span {
    font-size: 12px;
    color: #353535;
    margin-top: 6px;
  }
}
</style>
